
export interface INogetId {
  id: number;
}
/**
 * @description User-Service response
 * 插入聊天记录
 */
export interface IUserResult {
  accountid: number;
  oppositeid: number;
  information: string;
}
/**
 * 参数（自己的用户id、对方的用户id）
 */
export interface IChatRecord {
  accountid: number;
  oppositeid: number;
}
/**
 * 根据id查询返回聊天记录
 */
export interface IGetRecord {
  id:number;
  accountid: number;
  oppositeid: number;
  information: string;
  addtime:Date;
}
/**
 * 用户注册
 */
export interface IInsertUser {
  nickName: String;
  openid: number;
  gender: number;
  avatarUrl: string;
}

/**
 * 用户列表
 */
export interface IGetUser {
  id:number;
  nickName: String;
  openid: number;
  gender: number;
  avatarUrl: string;
}
export interface IAccount {
  id:Number;
  userName: String;
  password: String;
  addtime:Date;
}
export interface IGetAccount {
  userName: String;
  password: String;
}
export interface IGetPhone{
  options: String,
  code:number
}
export interface IDemand {
  current: number,
  pageSize: number,
  id?: number,
  nickName?: String,
  gender?: number,
  openid?: number,
}
/**
 * @description User-Service abstractions
 */
export interface IChatService {
  getChat(options: IUserResult);
}
export interface IUserService {
  insertUser(options:IInsertUser):Promise<number | undefined>
  getUser(options?:IDemand)
  fall(): Promise<IGetUser>
  delUser(id:number):Promise<number | undefined>
  putUser(options:IGetUser):Promise<number | undefined>
  // chatRecord(options:IChatRecord):Promise<IGetRecord>;
}
export interface IAccountService {
  getAccount(options: IGetAccount):Promise<IAccount | undefined>;
}
export interface IVerificaService {
  getPhone(phone: String):Promise<Object>;
}
export interface IFilesService {
  import(options:any)
  download()
}
export interface UtilService {
  mkdirFolder(options:String)
}